<template>
    <div>
        <p>电影:{{$route.params}}</p>
        <p>props传参{{  userId}}</p>
        <p>query传参{{ $route.query}}</p>
    </div>
</template>

<script setup>
import  {useRoute,useRouter}from 'vue-router'
const route= useRoute()
const  router =useRouter()

const props=defineProps({
    userId:String
})
console.log(router);
console.log(route.query);
</script>

<style  scoped></style>